package com.zhongke.cotrun.service;

import com.zhongke.cotrun.model.exception.MyException;
import com.zhongke.cotrun.model.pojo.Facilitator;
import com.zhongke.cotrun.model.pojo.UserInfo;

import javax.servlet.http.HttpSession;

public interface FacilitatorService {


    /**
     * 新建服务商
     * @param facilitator
     * @return
     */
    public Boolean insertFacilitator(Facilitator facilitator) throws MyException;

    /**
     *修改服务商信息
     * @param facilitator
     * @return
     */
    public Boolean updateFacilitator(Facilitator facilitator);

    /**
     * 根据用户id查询服务商认证信息
     * @param userId
     * @return
     */
    public  Facilitator selectFacilitatorByUserId(Integer userId);
}
